﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AMPSDAO.Entity.Attributes;

namespace AMPSDAO.Entity.Entitys
{
    public class UserDetail:BaseEntity
    {
        private long id;
        [ColumnAttribute(PrimaryKey=true, NotNull=true)]
        public long ID
        {
            get { return id; }
            set { id = value; }
        }

        private string userName;
        [ColumnAttribute(NotNull=true, Length=12)]
        public string UserName
        {
            get { return userName; }
            set { userName = value; }
        }

        private string email;
        [ColumnAttribute(NotNull=true, Length=50)]
        public string Email
        {
            get { return email; }
            set { email = value; }
        }

        private string permanentAddress;
        [ColumnAttribute(Length=500)]
        public string Address
        {
            get { return permanentAddress; }
            set { permanentAddress = value; }
        }

        private string temporaryAddress;
        [ColumnAttribute(Length = 500)]
        public string TemporaryAddress
        {
            get { return temporaryAddress; }
            set { temporaryAddress = value; }
        }

        private string phoneNumber;
        [ColumnAttribute(Length=15)]
        public string PhoneNumber
        {
            get { return phoneNumber; }
            set { phoneNumber = value; }
        }

        private DateTime birthday;
        [ColumnAttribute()]
        public DateTime Birthday
        {
            get { return birthday; }
            set { birthday = value; }
        }

        private int sex;
        [ColumnAttribute(Length=1)]
        public int Sex
        {
            get { return sex; }
            set { sex = value; }
        }
    }
}
